import React, { Component } from 'react'

export default class Child extends Component {
    constructor() {
        super();
        console.log('Child-构造器...')
    }
    render() {
        console.log('Child-render....')
        return (
            <div>
                <span>账号：{this.props.uname}</span>
            </div>
        )
    }
    componentDidMount() {
        console.log('child-组件挂载完成了......')
    }

    componentDidUpdate() {
        console.log('child-组件中状态被更新了...');
    }

    componentWillUnmount() {
        console.log('child-组件被卸载了....');
    }
}
